﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="sensor66_list.aspx.cs" Inherits="HYSoft.Web.sensor66_list" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<%@ Register Src="~/Controls/menu.ascx" TagName="menus" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>地质灾害物联网监测系统远程控制平台</title>
    <link href="CSS/public.css" rel="stylesheet" type="text/css" />
    <script src="JS/calendar1.js" type="text/javascript"></script>
    <script src="bootstrap/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <style type="text/css">
        .main
        {
            margin-left: auto;
            margin-right: auto;
            width: 1140px;
            height: auto;
            background-color: White;
        }
        .part_wss
        {
            width: 789px;
            margin-left: 180px;
            text-align: left;
        }
        .part_ws_bt
        {
            height: 34px;
            line-height: 34px;
            background: url(../images/biaotilan.png) no-repeat;
            font-family: "微软雅黑";
            font-size: 14px;
            padding-left: 22px;
            color: #fff;
            letter-spacing: 1px;
            border-top: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            border-left: 1px solid #d1d1d1;
        }
        .part_7
        {
            width: 787px;
            margin: auto;
        }
        .part_7_left
        {
            width: 400px;
            height: auto;
            float: left;
        }
        .part_7_left td
        {
            height: 25px;
        }
        .part2_1
        {
            width: 95px;
            height: 22px;
            background: url(../images/2.jpg) no-repeat;
            font-weight: bold;
            text-align: center;
            line-height: 22px;
            color: #ffff00;
            margin: auto;
            margin-top: 25px;
            margin-left: 90%;
        }
        .part_7_right
        {
            height: 280px;
            background: url(../images/1.jpg) no-repeat;
            padding-left: 10px;
            padding-top: 20px;
            margin-top: 30px;
        }
        .part_7_right3
        {
            width: 340px;
            height: 280px;
            background: url(../images/1.jpg) no-repeat;
            padding-left: 10px;
            padding-top: 8px;
            float: left;
            margin-top: 10px;
        }
        .part_7_right2
        {
            width: 230px;
            height: 195px;
            background: url(../images/1_2.jpg) no-repeat;
            padding-left: 5px;
            padding-top: 5px;
            float: left;
        }
        .part_7_ws
        {
            width: 760px;
            height: 305px;
            margin: auto;
            margin-top: 20px;
        }
        .part_7_3
        {
            width: 789px;
            margin: auto;
            margin-bottom: 20px;
        }
        .part_7_w1
        {
            width: 92%;
            height: 20px;
            background: url(../images/p_3.jpg) left no-repeat;
            padding-left: 20px;
            line-height: 20px;
            margin: auto;
            float: left;
            margin-left: 25px;
        }
        .part_7_w2
        {
            width: 92%;
            margin: auto;
            margin-top: 70px;
        }
        .part_7_w2 li
        {
            width: 228px;
            margin-right: 13px;
            float: left;
        }
        .divjyl
        {
            width: 800px;
            float: left;
        }
        .divdbbx
        {
            width: 100%;
        }
        .w_4
        {
            width: 95px;
            height: 22px;
            margin: auto;
            background: url(../images/2.jpg) no-repeat;
            font-weight: bold;
            color: #ffff00;
            text-align: center;
            line-height: 22px;
            margin-left: 330px;
        }
        .part_a1
        {
            width: 787px;
            border-left: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            background: url(../images/w_p5.jpg) bottom repeat-x;
        }
        .area
        {
            width: 100%;
            height: auto;
            margin-left: auto;
            margin-right: auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc1:menus ID="menus" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="main">
        <div>
            <img src="Images/top.PNG" />
        </div>
        <div class="part_wss">
            <div class="part_ws_bt">
                位移计基本状态</div>
            <div class="part_a1">
                <div class="part_7">
                    <div class="part_7_left">
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                                <table width="95%" border="0" align="right" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
                                    <tr>
                                        <td style="text-align: left;">
                                            <table width="95%" border="0" align="right" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
                                                <tr>
                                                    <td width="19">
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        传感器名：<%#data_typename(Eval("adminno").ToString())%>传感器
                                                    </td>
                                                    <td width="19">
                                                    </td>
                                                    <td width="120" style="text-align: left;">
                                                        <img src="images/p_3.jpg" width="12" height="12" />安装照片：
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        Mac地址： &nbsp;<%#Eval("mac").ToString()%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        手机卡号： &nbsp;<%#Eval("simno").ToString()%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        安装位置： &nbsp;<%#Eval("addr")%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        所属监测点： &nbsp;<%#data_addrname(Eval("areano").ToString())%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        所属监测员： &nbsp;<%#Eval("name")%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        监测员手机： &nbsp;<%#Eval("Mobile")%></td>
                                                </tr>
                                                <tr id="weiyi1" runat="server">
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        位移计报警长度： &nbsp;<%#data_count(Eval("intvalue1"))%>(mm)
                                                    </td>
                                                </tr>
                                                <tr id="weiyi2" runat="server">
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        位移增幅： &nbsp;<%#data_count(Eval("intvalue2"))%>(mm)
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        传感器状态： &nbsp;<%#data_zhuangt(Eval("chuanganqi").ToString())%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        报警级别： &nbsp;<%#data_jibie(Eval("jingbao").ToString())%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        最新状态时间：
                                                        <%#Eval("charvalue2").ToString()%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        温度状态： &nbsp;<%#data_wendu(Eval("wendu").ToString())%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        供电模式： &nbsp;<%#Eval("gongdian").ToString()%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        电量状态： &nbsp;<%#data_dianliang(Eval("dianliang").ToString())%></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        位移初值： &nbsp;<%#data_count(Eval("value0"))%>(mm)
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="images/p_3.jpg" width="12" height="12" />
                                                    </td>
                                                    <td style="text-align: left;">
                                                        当前时间间隔： &nbsp;<%#Eval("rate0").ToString()%>(小时)
                                                    </td>
                                                </tr>
                                                <%if (Session["uwrite"].ToString() == "1") %>
                                                <%{ %>
                                                <tr>
                                                    <td colspan="6">
                                                        <div class="part2_1">
                                                            <a href="edit66.aspx?mac=<%#Eval("mac")%>" style="color: #ffff00; background-color: Blue;">
                                                                编辑传感器</a>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <%}%>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <div class="part_7_right">
                        <img src="<%=tux %>" width="320" height="240" /></div>
                    <div class="clear">
                    </div>
                </div>
                <div class="part_7_w1">
                    数据记录：<a style="color: red;">(初始显示为最近10条记录)</a></div>
                <div class="part_7_w2">
                    <div style="text-align: center;">
                        <input id="txtfrom" class="Wdate" type="text" runat="server" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1997-01-01 00:00:00',maxDate:'2108-01-10 23:59:59'})"
                            value="2013-10-12 11:00:00" />
                        —
                        <input id="txtto" class="Wdate" type="text" runat="server" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1997-01-01 00:00:00',maxDate:'2108-01-10 23:59:59'})"
                            value="2013-10-12 11:00:00" />
                        <%-- <input type="text" id="txtfrom" onfocus="setday(this);" runat="server" />—
                            <input type="text" id="txtto" onfocus="setday(this);" runat="server" />--%>
                        <asp:Button ID="Button1" runat="server" Text="刷 新" OnClick="Button1_Click" />
                    </div>
                    <br />
                    <br />
                    <div style="margin: 0px auto 0px auto; overflow: auto;">
                        <asp:Chart ID="Chart1" runat="server" Height="500px" Width="720px" OnCustomize="Chart1_Customize"
                            OnPreRender="Chart1_PreRender"  Compression="100">
                            <Series>
                                <asp:Series Name="Series1" ChartType="Line" IsXValueIndexed="True" LabelFormat="0.00">
                                </asp:Series>
                            </Series>
                            <ChartAreas>
                                <asp:ChartArea Name="ChartArea1">
                                </asp:ChartArea>
                            </ChartAreas>
                            <Titles>
                                <asp:Title Name="Title1">
                                </asp:Title>
                            </Titles>
                        </asp:Chart>
                    </div>
                </div>
                <br />
                <hr />
                <div class="clear" style="background: #eaebef;">
                </div>
            </div>
            <div class="part_7_3">
                <img src="images/10.jpg" width="789" height="13" /></div>
            <div class="part_2_7">
            </div>
        </div>
    </div>
</asp:Content>
